﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$user.nickname}}的主页_{{$smarty.const.SITENAME}}</title>
<link href="/static/css/base.css" rel="stylesheet" type="text/css">
<link href="/static/css/grid.css" rel="stylesheet" type="text/css">
<link href="/static/styles/global.css" rel="stylesheet" type="text/css" />
<link href="/static/css/ab.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/autoresize.js"></script>
<SCRIPT  language="JavaScript" src="/static/js/SwooleUI.js" type=text/javascript></SCRIPT>
<SCRIPT  language="JavaScript" src="/static/js/main.js" type=text/javascript></SCRIPT>
<script type="text/javascript">
window.onload = function(){
	left_eq_right();
};
</script>
</head>

<body>
{{include file='header.html}}
<div class="ilayout">
{{include file='block/user_left.html}}
<div class="icontent" id="pright">
<!--欢迎页面-->
<!--欢迎页面-->
<div class="microblog" id='mblog_list' style="border-bottom:1px dotted #CCC; margin-top:12px;">
<div class="welcome">{{$blog.title}} <span class="date" style="float:right">
发表时间：{{$blog.addtime}}</span></div>
<div class="content">{{$blog.content}}</div>
<div class="clear"></div>
<div class="pages">{{$pager.render}}</div>
</div>
<div id='comment' style="margin-top:12px;">
<table width="620" border="0" align="left" cellpadding="0" cellspacing="0" style="margin-top:12px;">	
{{foreach item=v from=$comments}}		
  <tr style="padding:5px;">
    <td width="90"><img class="avatar photo" src="{{$v.avatar}}" alt=""></td>
    <td valign="top"><cite class="fn">{{$v.uname}}</cite> <span class="says">says:</span>
    <div class="comment-meta commentmetadata">
        	{{$v.addtime}}	
	    </div>					
			<p>{{$v.content}}</p>
    </td>
  </tr>
  <tr><td colspan="2" height="10"></td></tr>
  <tr><td colspan="2" height="10" style="border-top:1px dotted #CCC;"></td></tr>
{{/foreach}}
</table>
<form id="comment_form" name="comment_form" method="post" action="" style="margin-top:12px; padding-top:12px;width:618px;">
<table border="0" align="left" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td width="45" valign="top">内容</td>
    <td><textarea name="comment_content" cols="54" rows="5" id="comment_content"></textarea></td>
  </tr>
  <tr>
    <td width="45">验证码</td>
    <td><input name="authcode" type="text" id="authcode" size="10" />
      <img src="/swoole_plugin/media/gd.php" name="authcode_img" class="" id="authcode_img" />
      <input name="app" type="hidden" id="app" value="blog" />
      <input name="aid" type="hidden" id="aid" value="{{$blog.id}}" /></td>
  </tr>
  <tr>
    <td width="45">&nbsp;</td>
    <td><label>
      <input type="button" name="button" id="button" value="发表评论" onclick="post_comment()" />
    </label></td>
  </tr>
</table>
</form>
</div>
<!--邮件-->
<!--邮件-->
<!--编辑个人资料-->
<!--编辑个人资料-->
</div>
</div>
{{include file=footer.html}}
</body>
</html>